<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<div class="well">

	<div id="myTabContent" class="tab-content">
		<div class="tab-pane active in" id="home">
			<s:form id="tab" method="post" action="addMediaGallery">
				<label>Url</label>
				<input type="text" value="" name="media.url"
					class="input-xlarge" />
				<input type="hidden" value="${idGallery}" name="media.idgallery"
					class="input-xlarge" />

				<div>
					<input type="submit" class="btn btn-primary">
				</div>

			</s:form>
			<s:iterator value="entityBean.medias">

				<div style="float: left;">
					<div class="myphoto">
						<div class="spot-image">
							<div class="box-image">
								<a href='<s:property value="url"/>'><img
									src='<s:property value="url"/>' /></a>
							</div>
						</div>
					</div>
					<div style="clear: both"></div>
					<s:url id="delete_media" action="deleteMediaGallery" namespace="/administrator">
						<s:param name="idMedia"><s:property value="idmedia"/></s:param>
						<s:param name="idGallery"><s:property value="idgallery"/></s:param>
					</s:url>
					<s:a  style="font-size: 12px; text-decoration: none; color: #7D8C9B;"
						href="%{delete_media}"><img src="../images/icon_delete.jpg" width="20px"
						height="20px" />cancella</s:a>
				</div>


			</s:iterator>

		</div>


	</div>
</div>